package com.qf.springboot0406.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private Integer id;
    private String name;
    private String password;
    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date registTime;
    private String auth;

    // 添加字段status，用于记录该用户是否被点过名，初始值0代表没被点过
    private String status;

    // 添加账户余额字段
    private Integer amount;

    // 用户头像的文件名
    private String picname;

}

